﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRM.Entity;
using HRM.DAL;

namespace HRM.BIZ
{
    public class DepartmentBiz:BaseBiz
    {
        public List<Department> GetAll()
        {
            return new DepartmentDAL().GetAll();
        }

        public Department GetByID(int ID)
        {
            return new DepartmentDAL().GetByID(ID);
        }

        public Department Add(Department item)
        {
            return new DepartmentDAL().Add(item);
        }

        public Department Update(Department item)
        {
            return new DepartmentDAL().Update(item);
        }

        public void Delete(int ID)
        {
            new DepartmentDAL().Delete(ID);
        }
    }
}
